package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.dto.ServiceQueryDto;
import com.csun.cmny.provider.model.domain.OmcService;
import com.csun.cmny.provider.vo.ServiceVo;
import com.csun.cmny.provider.vo.VolunteerVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface OmcServiceMapper extends Mapper<OmcService> {

    /*
    *   分页查询服务
    * */
    List<ServiceVo> queryServiceListWithPage(ServiceQueryDto serviceQueryDto);

    /*
    *   根据服务名称查询服务
    *  */
    List<ServiceVo> queryServiceListByServiceName(@Param("serviceName") String serivcName);
    //查询该平台下服务项目
    List<String> selectSeriviceItem(@Param("groupIdList") List<Long> groupIdList);
    //查询服务项目占比
    Map<String, Number> selectServicePercent(@Param("groupIdList") List<Long> groupIdList,@Param("services") List<String> services);
    //查询服务项目占比
    List<Map<String, Number>> selectServiceByNurseHome(@Param("groupIdList") List<Long> groupIdList,@Param("services") List<String> services);
    /*
     * 大数据平台社区志愿者页面志愿者服务时长
     * */
    List<VolunteerVo> selectServiceTimeByNurseHome(@Param("year") String year,@Param("groupIdList") List<Long> groupIdList);
}